import request from "@/utils/request";

// 用户登录
export function authLogin(data) {
  return request({
    url: "/keyue/admin/auth/login_by_pwd",
    method: "post",
    data,
  });
}

// 获取图片验证码
export function getImgCaptchaCode(data) {
  return request({
    url: "/keyue/admin/captcha/get_img_captcha_code",
    method: "post",
    data,
  });
}

//获取用户信息
export function getInfo(id) {
  return request({
    url: "api/auth/queryAllUser",
    method: "post",
    data: {
      offset: 1,
      limit: 5,
      data: {
        id,
      },
    },
  });
}

//登出
export function logout() {
  return request({
    url: "/keyue/admin/auth/login_out",
    method: "post",
  });
}
